package com.CST.entity.ys;

import com.CST.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author qtx
 * @since 2023-04-23
 */
@Getter
@Setter
@TableName("YS_SUBJECT")
@ApiModel(value = "YsSubject对象", description = "")
public class YsSubject extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("预算科目名称")
    @TableField("subject_name")
    private String subjectName;

    @ApiModelProperty("预算科目编码")
    @TableField("subject_code")
    private String subjectCode;

    @ApiModelProperty("预算类别")
    @TableField("subject_type")
    private String subjectType;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("父预算科目名称")
    @TableField("parent_name")
    private String parentName;

    @ApiModelProperty("父id")
    @TableField("parent")
    private Long parent;

    @ApiModelProperty("顶级id")
    @TableField("first_id")
    private Long firstId;

    @ApiModelProperty("是否为叶子节点")
    @TableField("child")
    private Boolean child;

    @ApiModelProperty("父true或子false")
    @TableField("parent_child")
    private Boolean parentChild;

    @TableField(exist = false)
    private List<Long> type;

    @TableField(exist = false)
    private List<Long> departments;

    @TableField(exist = false)
    private List<YsSubject> childList;
}
